//
//  YZYUserInfo.h
//  YZYSDKDemo
//
//  Created by 赵隆杰 on 2024/6/25.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN
/*
 accessToken = d3dde0feaaa44d16995f5eeb5194cf4a;
 isAuth = 1;
 isPhone = 1;
 isRegister = 0;
 userId = 21297;
 userName = 18072760591;
 uuid = "<null>";
 */
@interface YZYUserInfo : NSObject

@property (nonatomic, copy) NSString *accessToken;
@property (nonatomic, strong) NSNumber *isAuth;
@property (nonatomic, strong) NSNumber *isPhone;
@property (nonatomic, strong) NSNumber *isRegister;
@property (nonatomic, strong) NSNumber *userId;
@property (nonatomic, copy) NSString *userName;
@property (nonatomic, copy) NSString *uuid;
@property (nonatomic, strong) NSNumber *sonId;

@property (nonatomic, assign) BOOL isLogin;//登录状态 NO未登录 YES已登录

- (instancetype)initWithUserDict:(NSDictionary *)dict;
- (void)saveUserInfo;
- (void)removeUserInfo;
- (YZYUserInfo *)getUserInfo;

@end

NS_ASSUME_NONNULL_END
